<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<p id="test1">这是一个段落。</p>

<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript">
    deferred();

    function deferred() {
        $.get('defer', function (data) {
            console.log(data)
            $("#test1").text(data);
            deferred();
        })
    }
</script>
</body>
</html>